<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a href="8-20-work-3.html">计算器</a>
</body>

<script>
    var month = prompt('请输入出生的月份')
    var day = prompt('请输入出生的日期')

    if (month==1){
        if (day>=20&&day<=31) alert('水瓶座')
    }if (month==2){
        if (day>=1&&day<=18) alert('水瓶座')
    }

    if (month==2){
        if (day>=19&&day<=31) alert('双鱼座')
    }if (month==3){
        if (day>=1&&day<=20) alert('双鱼座')
    }

    if (month==3){
        if (day>=21&&day<=31) alert('白羊座')
    }if (month==4){
        if (day>=1&&day<=19) alert('白羊座')
    }

    if (month==4){
        if (day>=20&&day<=31) alert('金牛座')
    }if (month==5){
        if (day>=1&&day<=20) alert('金牛座')
    }

    if (month==5){
        if (day>=21&&day<=31) alert('双子座')
    }if (month==6){
        if (day>=1&&day<=21) alert('双子座')
    }

    if (month==6){
        if (day>=22&&day<=31) alert('巨蟹座')
    }if (month==7){
        if (day>=1&&day<=22) alert('巨蟹座')
    }

    if (month==7){
        if (day>=23&&day<=31) alert('狮子座')
    }if (month==8){
        if (day>=1&&day<=22) alert('狮子座')
    }

    if (month==8){
        if (day>=23&&day<=31) alert('处女座')
    }if (month==9){
        if (day>=1&&day<=22) alert('处女座')
    }

    if (month==9){
        if (day>=23&&day<=31) alert('天枰座')
    }if (month==10){
        if (day>=1&&day<=23) alert('天枰座')
    }

    if (month==10){
        if (day>=24&&day<=31) alert('天蝎座')
    }if (month==11){
        if (day>=1&&day<=22) alert('天蝎座')
    }

    if (month==11){
        if (day>=23&&day<=31) alert('射手座')
    }if (month==12){
        if (day>=1&&day<=21) alert('射手座')
    }

    if (month==12){
        if (day>=22&&day<=31) alert('摩羯座')
    }if (month==1){
        if (day>=1&&day<=19) alert('摩羯座')
    }



</script>

</html>